package guess;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        int choice;
        boolean ifcontinue = true;
        Scanner scanner = new Scanner(System.in);
        game game = new game();
        do {
            game.menu();
            choice = scanner.nextInt();
            switch (choice)
            {
                case 1:
                {
                    game.guessgame();
                    break;
                }
                case 2:
                {
                    ifcontinue = false;
                    System.out.println("退出");
                    break;
                }
                default:
                {
                    System.out.println("选择错误");
                    break;
                }
            }
        }while(ifcontinue);
    }
}
